package cn.softcits.thread.ticket;

import java.util.concurrent.Executors;

/**
 * @author Rocket
 * @version 10.0.1
 * @date 2021-07-04 1:35 PM
 */
public class SellTest {

    public static void main(String[] args) {
        Ticket ticket = new Ticket();
        ticket.setName("CINIMA");
        ticket.setAmount(100);

        SellThread seller1 = new SellThread("seller1", ticket);
        SellThread seller2 = new SellThread("seller2", ticket);

        seller1.start();
        seller2.start();

    }
}
